using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace GURUCORE.FormBase
{
	public class SimpleInputBox : GURUCORE.FormBase.FrmBase
	{
		private GURUCORE.FormBase.DataInput iptSimpleValue;
		private System.ComponentModel.IContainer components = null;
		
		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.iptSimpleValue = new GURUCORE.FormBase.DataInput();
			this.SuspendLayout();
			// 
			// iptSimpleValue
			// 
			this.iptSimpleValue.Caption = null;
			this.iptSimpleValue.CaptionPreferWidth = -1;
			this.iptSimpleValue.DefaultValue = null;
			this.iptSimpleValue.Description = null;
			this.iptSimpleValue.Font = new System.Drawing.Font("Arial", 8.25F);
			this.iptSimpleValue.Location = new System.Drawing.Point(8, 8);
			this.iptSimpleValue.Name = "iptSimpleValue";
			this.iptSimpleValue.Size = new System.Drawing.Size(256, 20);
			this.iptSimpleValue.TabIndex = 3;
			this.iptSimpleValue.TextBoxPreferWidth = -1;
			// 
			// SimpleInputBox
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(410, 219);
			this.Controls.Add(this.iptSimpleValue);
			this.Name = "SimpleInputBox";
			this.Closed += new System.EventHandler(this.SimpleInputBox_Closed);
			this.Controls.SetChildIndex(this.iptSimpleValue, 0);
			this.ResumeLayout(false);

		}
		#endregion

		private string m_sValue;
		public string Value
		{
			get
			{
				return m_sValue;
			}
			set
			{
				m_sValue = value;
			}
		}



		public SimpleInputBox()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();
		}
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		private void SimpleInputBox_Closed(object sender, System.EventArgs e)
		{
            m_sValue = iptSimpleValue.Value;		
		}



	}
}

